{% extends "base_generic.html" %}

{% block content %}
    <div class="container mt-4">
        <h1>{% if form.instance.pk %}Edit Author{% else %}Create Author{% endif %}</h1>
<form action="" method="post">
    {% csrf_token %}
            <div class="form-group">
                {{ form.as_p }}
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
</form>
    </div>
{% endblock %}
